#FROM docker.dm-ai.cn/algorithm-research/calligraphy/py3.8-cuda11.0-cudnn8-trt8.4-torch1.7:v2
FROM docker.dm-ai.cn/algorithm-research/calligraphy/py3.8-cuda11.0-cudnn8-trt8.4-torch1.8.1:v4
#FROM docker.dm-ai.cn/algorithm-research/py38-cuda11.2-cudnn8.1-ubuntu18.04:torch1.8.1-trt8.4
#FROM docker.dm-ai.cn/algorithm-research/py38-cuda11.2-cudnn8.1-ubuntu18.04-torch1.8.1-trt8.4:base
#FROM docker.dm-ai.cn/algorithm-research/py38-cuda11.2-cudnn8.1-ubuntu18.04-torch1.8.1-trt8.4:yolov8


WORKDIR /app
ADD app /app/
RUN pip install  -i https://pypi.tuna.tsinghua.edu.cn/simple --no-cache-dir --upgrade pybaseutils
RUN pip install  -i https://pypi.tuna.tsinghua.edu.cn/simple --no-cache-dir yacs==0.1.8
RUN pip install  -i https://pypi.tuna.tsinghua.edu.cn/simple --no-cache-dir redis==5.0.7
RUN pip install  -i https://pypi.tuna.tsinghua.edu.cn/simple --no-cache-dir aiohttp==3.9.5  dill==0.3.6 psutil==5.9.1
RUN pip install  -i https://pypi.tuna.tsinghua.edu.cn/simple --no-cache-dir urllib3==1.25.11
RUN pip install  -i https://pypi.tuna.tsinghua.edu.cn/simple --no-cache-dir pyarmor==7.7.4
#RUN pip install  -i https://pypi.tuna.tsinghua.edu.cn/simple --no-cache-dir onnx==1.14.0 onnxruntime-gpu==1.15.1 onnx-simplifier==0.4.33
RUN pip install  -i https://pypi.tuna.tsinghua.edu.cn/simple --no-cache-dir elastic-apm
CMD ["python", "main.py"]
